package com.lzpu.thymeleafproject;

import com.lzpu.thymeleafproject.demos.quartz.TriggerRunner;
import org.quartz.SchedulerException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAsync
@EnableScheduling
@SpringBootApplication
@ServletComponentScan
public class ThymeleafProjectApplication {

    public static void main(String[] args) throws SchedulerException {
        SpringApplication.run(ThymeleafProjectApplication.class, args);

       TriggerRunner.main();
    }

}
